#include "util_test.h"

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

void test_permuteArray(){
    int n=0, i;
    ArrayList *list = NULL;

    srand(time(NULL));

    n = rand() % 21 + 1;
    printf("generando vector de %d numeros...\n", n);

    list = newNumerationArray(n);
    for(i=0; i<n; i++) printf("%d   ", *(int *)list->data[i]);
    printf("\n");

    permuteArray(list);

    printf("permuteArray()\n");
    for(i=0; i<n; i++) printf("%d   ", *(int *)list->data[i]);
    printf("\n");

    freeNumerationArray(list);
}
